package com.woniuxy.yuekeuser.common;

import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;

public class UtilMethod {
    public static LocalDateTime getTime(String str){
        DateTimeFormatter df=DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss");
        LocalDateTime ldt=LocalDateTime.parse(str,df);
        return ldt;

    }
}
